package cn.sofwin.os.entity;


import cn.sofwin.core.mvc.support.bean.IdEntity;
import cn.sofwin.core.mvc.support.bean.LoginUser;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 用户实体
 * @author LetCode
 * @version 1.0
 * @date 2020-04-23 11:28:34
 *
 */
public class User extends IdEntity implements LoginUser {
	
	private static final long serialVersionUID = 3215797759524133761L;
	
	/** 用户名 */
	private String username;
	
	/** 加盐 */
	@JsonIgnore
	private String salt;
	
	/** 密码 */
	private String password;
	
	/** 昵称 */
	private String nickname;
	
	/** 状态：-1.删除，0.停用，1.正常 */
	private Integer status;
	
	public User() {
	}

	public User(Integer id) {
		this.id = id;
	}
	
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getSalt() {
		return this.salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}
	
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
}